#!/bin/bash

eww close selector
eww close selector_gif

# 获取壁纸路径
wallpaper_path="$1"
wallpaper_name=$(basename $wallpaper_path)
wallpaper_path=$(echo $wallpaper_path | sed 's/thumbs/backgrounds/')

# 使用 swww 设置壁纸
swww img "$wallpaper_path" --transition-type grow --transition-fps 144

notify-send -i "liteupdatesnotify" "壁纸已切换: $wallpaper_name"
